package com.wsoft.hr.pm.query.template;

import com.wsoft.hr.pm.query.template.scope.TemplateScopeUpdateQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * 模板保存
 * @Author z001
 * @Date 2025/2/25 08:26
 */
@Data
public class TemplateSaveQuery {

    @Schema(description = "模版id")
    private Long id;

    @Schema(description = "模板编码")
    private String code;

    @Schema(description = "模板名称")
    @NotBlank(message = "模板名称不能为空")
    private String name;

    @Schema(description = "移除的流程id")
    private List<Long> removeScopeList;

    @Schema(description = "移除的指标id")
    private List<Long> removeTargetList;

    @Schema(description = "模板流程list")
    private List<TemplateScopeUpdateQuery> scopeList;

}
